package Observer_Pattern.school;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Client {
    public static void main(String[] args) {
        AbstractTraget abstractTraget;
        abstractTraget=new ConcreteAbstract();

        Observe observe1,observe2;
        observe1=new Member("信息工程","liu");
        observe2=new Member("信息工程","yu");
        System.out.println("档案为\n"+observe1.getSystem_name()+observe1.getWork_name()+"\n"+observe2.getSystem_name()+observe2.getWork_name());
        abstractTraget.join(observe1);
        abstractTraget.join(observe2);
        abstractTraget.change("软件工程");

    }
}
